﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using QuanLyPhongVePhim.Forms;

namespace QuanLyPhongVePhim
{
    public partial class Form1 : Form
    {
        #region private variables
        private frmDanhSachNhanVien frmDanhSachNhanVien = null;
        private frmDanhSachKhuyenMai frmKhuyenMai = null;
        private frmDanhSachPhim frmPhim = null;
        private frmDanhSachRapChieu frmRapChieu = null;
        private frmDanhSachSuatChieu frmSuatChieu = null;
        private frmDanhSachVePhim frmVePhim = null;

        #endregion
       
        #region events
        public Form1()
        {
            InitializeComponent();

        }

        private void Form1_Load(object sender, EventArgs e)
        {
        }


        private void danhSáchNhânViênToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (frmDanhSachNhanVien == null)
                frmDanhSachNhanVien = new frmDanhSachNhanVien();
            frmDanhSachNhanVien.MdiParent = this;
            frmDanhSachNhanVien.Show();
        }

        private void DanhSachKhuyenMaiItem_click(object sender, EventArgs e)
        {
            if (frmKhuyenMai == null)
                frmKhuyenMai = new frmDanhSachKhuyenMai();
            frmKhuyenMai.MdiParent = this;
            frmKhuyenMai.Show();
        }

        private void danhSachPhimItem_Click(object sender, EventArgs e)
        {
            if (frmPhim == null)
                frmPhim = new frmDanhSachPhim();
            frmPhim.MdiParent = this;
            frmPhim.Show();
        }

        private void RapChieuItem_Click(object sender, EventArgs e)
        {
            if (frmRapChieu == null)
                frmRapChieu = new frmDanhSachRapChieu();
            frmRapChieu.MdiParent = this;
            frmRapChieu.Show();
        }

        private void SuatChieuItem_Click(object sender, EventArgs e)
        {
            if (frmSuatChieu == null)
                frmSuatChieu = new frmDanhSachSuatChieu();
            frmSuatChieu.MdiParent = this;
            frmSuatChieu.Show();
        }

        private void VePhimItem_Click(object sender, EventArgs e)
        {
            if (frmVePhim == null)
                frmVePhim = new frmDanhSachVePhim();
            frmVePhim.MdiParent = this;
            frmVePhim.Show();
        }
        #endregion
       
    }
}
